﻿using Microsoft.EntityFrameworkCore;
using Abp.Zero.EntityFrameworkCore;
using CheryABP.Authorization.Roles;
using CheryABP.Authorization.Users;
using CheryABP.MultiTenancy;
using CheryABP.SystemSetitng;
using CheryABP.Person;

namespace CheryABP.EntityFrameworkCore
{
    public class CheryABPDbContext : AbpZeroDbContext<Tenant, Role, User, CheryABPDbContext>
    {
        /* Define a DbSet for each entity of the application */
        
        public CheryABPDbContext(DbContextOptions<CheryABPDbContext> options)
            : base(options)
        {
        }

        //必需  且名称与实体名一致

        public virtual DbSet<People> Person { get; set; }
        public virtual DbSet<system_login> system_login { get; set; }
        public virtual DbSet<system_menu> system_menu { get; set; }

        public virtual DbSet<system_role> system_role { get; set; }

        public virtual DbSet<system_department> system_department { get; set; }
        public virtual DbSet<system_role_action> system_role_action { get; set; }

        public virtual DbSet<system_role_user> system_role_user { get; set; }
    }
}
